﻿namespace ZenSystemService.Api.Entities
{
    /// <summary>
    /// 产品类型 
    /// </summary>
    public class ProductType
    {
        public int ProductTypeId { get; set; }
      

        /// <summary>
        /// 项目名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 设备类型ID
        /// </summary>
        public int? DeviceTypeId { get; set; }
        public DeviceType? DeviceType { get; set; }

        public string? Enabled { get; set; }


        public int? CreatedUserID { get; set; }


        public DateTime? CreatedDate { get; set; }
        public decimal UnitPrice { get; set; }
        public string? Alias { get; set; } = "";
    }

    /// <summary>
    ///  产品表
    /// </summary>
    public class Product
    {
        public int ProductId { get; set; }
        public int InstitutionSalesOrderId { get; set; }
        public InstitutionSalesOrder InstitutionSalesOrder { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 产品类型Id
        /// </summary>
        public int? ProductTypeId { get; set; }
        public ProductType? ProductType { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        public int InstitutionId { get; set; }
        public Institution Institution {  get; set; }

        /// <summary>
        /// 生效开始日期
        /// </summary>
        public DateTime EffectiveStartDate { get; set; }


        /// <summary>
        /// 有效期（天）
        /// </summary>
        public int ValidityDays { get; set; }

        /// <summary>
        /// MAC地址
        /// </summary>
        public string? MacAddress { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        public string? Alias { get; set; }

        /// <summary>
        /// 唯一编号
        /// </summary>
        public string UniqueNumber { get; set; }

        public string Enabled { get; set; } = "1";
        public string? Status { get; set; } = "0";//1: 序列码已下发，0未下发
        public DateTime? LastVisitedDate { get; set; }
    }
}
